package com.hx.springbootmybstis.mapper;

import com.hx.springbootmybstis.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author: 若若叶
 * @date: 2021/9/28 19:05 FileName: UserMapper Description:
 */
@Mapper
public interface UserMapper {
  // 查询
  // @Select("select * from tb_user where uid=#{uid}")
  User findUserById(Integer uid);

  // 添加
  int addUser(User user);

  // 查所有
  List<User> findAll();

  // 删除
  int deleteUser(Integer uid);

  // 修改
  int modUser(User user);
}
